package gdx_tyrian;

import gdx_tyrian.screen.SplashScreen;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.FPSLogger;

public class Tyrian extends Game {
	public static String LOG = Tyrian.class.getName();
	private FPSLogger fpsLogger;

	public SplashScreen getSplashScreen() {
		return new SplashScreen(this);
	}

	@Override
	public void create() {
		Gdx.app.log(Tyrian.LOG, "Creating game");
		fpsLogger = new FPSLogger();
		setScreen(getSplashScreen());
	}

	@Override
	public void render() {
		super.render();
		// output the current FPS
		fpsLogger.log();
	}

}
